package com.mxpio.erp.asset.purchase.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.mxpio.erp.asset.utils.excel.ExcelHead;

import java.math.BigDecimal;

/**
 * @Author : 吴盼盼
 * @Datetime : 2022/10/14 10:53
 * @Desc :  物资订单(采购收货通知单) 导入实体工具类
 * @Modor :  Modifytime:
 * @modDesc :
 */
@ExcelHead(sheetName = "初始入库导入")
@ColumnWidth(30)
public class InitializeReceivingNoticeImportModel {
    @ExcelProperty(value = "仓库编码")
    private String whCode;
    @ExcelProperty(value = "物料编码")
    private String itemCode;
    @ExcelProperty(value = "数量")
    private BigDecimal quantity;
    @ExcelProperty(value = "备注")
    private String note;

    @ExcelProperty(value = "批次号")
    private String lotNo;
    @ExcelProperty(value = "导入结果")
    private String importSuccess;

    @ExcelProperty(value = "导入提示信息")
    private String importMsg;

    public void fail(String errMsg) {
        setImportSuccess("失败");
        setImportMsg(errMsg);
    }

    public String getWhCode() {
        return whCode;
    }

    public void setWhCode(String whCode) {
        this.whCode = whCode;
    }

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public BigDecimal getQuantity() {
        return quantity;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getImportSuccess() {
        return importSuccess;
    }

    public void setImportSuccess(String importSuccess) {
        this.importSuccess = importSuccess;
    }

    public String getImportMsg() {
        return importMsg;
    }

    public void setImportMsg(String importMsg) {
        this.importMsg = importMsg;
    }

    public String getLotNo() {
        return lotNo;
    }

    public void setLotNo(String lotNo) {
        this.lotNo = lotNo;
    }
}
